package com.start.core.controller;

import com.start.common.api.Result;
import com.start.common.dic.DicApiManage;
import com.start.common.entity.StartDicGroup;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/start/core/DicApi")
public class StartDicApiController {
    @GetMapping("/getStartDicApis")
    public Result<?> getStartDicApis(String searchLabel) {
        List<StartDicGroup> allDicApis = DicApiManage.getInstance().getAllDicApis(searchLabel);
        return Result.ok(allDicApis);
    }
}
